/*
 * @Author: lixb
 * @Date: 2020-08-31 10:23:15
 * @LastEditTime: 2020-09-19 14:21:59
 * @Descripttion:首页各个模块接口
 */
import axios from '@/utils/axios';

//生日墙
export const getBirthdayWall = data =>
  axios.post(`/bnd-benefits/birthdayWall/getBirthdayWallByIndex`, data);

//活动列表
export const getVotePage = () => axios.get(`/bnd-benefits/applyActivity/getApplyActivityByIndex`);

//薪享卡和福利概况的公用接口
export const findAdvanceDetail = data => axios.post(`/bnd-uaac/advance/findAdvanceDetail`, data);

//消费统计
export const getEchartsData = data => axios.post(`/shanglike-datacenter/v1/welfare/get/Cost`, data);

//获取首页人员统计
export const getOrganizationStaffCountMap = ({ organizationId }) =>
  axios.get(`/bnd-uaac/uaacUserOrganization/getOrganizationStaffCountMap/${organizationId}`);

//设置添加常用工具
export const setConfig = data => axios.post(`/bnd-benefits/menuConfig/setConfig`, data);

//获取常用工具
export const getConfig = menuType => axios.get(`/bnd-benefits/menuConfig/getConfig/${menuType}`);
